package com.zhouxiao.multithreading.runningcallback;

/**
 * @author 周明阳
 * mail:gqzmy@outlook.com
 * 时间:2018-03-13 10:20
 */

public class MainClass {
    public static void main(String[] args) {
        Rabbit rabbit = new Rabbit();
        Tortoise tortoise = new Tortoise();

        rabbit.calltoback = new LetOneStop(tortoise);

        tortoise.calltoback = new LetOneStop(rabbit);

        tortoise.start();
        rabbit.start();

    }
}
